package com.testmall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
  * @Description: 
  * @Author: littleDesire
  * @Date: 2022-06-21 14:29
  * @Version: 1.0
  * 
  */
@ApiModel(value="com-testmall-entity-Category")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "category")
public class Category implements Serializable {
    /**
     * 类别Id
     */
    @TableId(value = "cateid", type = IdType.INPUT)
    @ApiModelProperty(value="类别Id")
    private String cateid;

    /**
     * 父类别id当id=0时说明是根节点,一级类别
     */
    @TableField(value = "parentid")
    @ApiModelProperty(value="父类别id当id=0时说明是根节点,一级类别")
    private String parentid;

    /**
     * 类别名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="类别名称")
    private String name;

    /**
     * 类别状态1-正常,2-已废弃
     */
    @TableField(value = "status")
    @ApiModelProperty(value="类别状态1-正常,2-已废弃")
    private Integer status;

    /**
     * 排序编号,同类展示顺序,数值相等则自然排序
     */
    @TableField(value = "sortorder")
    @ApiModelProperty(value="排序编号,同类展示顺序,数值相等则自然排序")
    private Integer sortorder;

    /**
     * 创建时间
     */
    @TableField(value = "createtime")
    @ApiModelProperty(value="创建时间")
    private Date createtime;

    /**
     * 更新时间
     */
    @TableField(value = "updatetime")
    @ApiModelProperty(value="更新时间")
    private Date updatetime;

    private static final long serialVersionUID = 1L;

    public static final String COL_CATEID = "cateid";

    public static final String COL_PARENTID = "parentid";

    public static final String COL_NAME = "name";

    public static final String COL_STATUS = "status";

    public static final String COL_SORTORDER = "sortorder";

    public static final String COL_CREATETIME = "createtime";

    public static final String COL_UPDATETIME = "updatetime";
}